<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人信息 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/member.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>
<div class="b-page">
    <Admintemplate file="Home/Public/header"/>

<div class="contentbj">
    <div class="member_body">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="180" valign="top" bgcolor="#f5f5f5">
                    <a href="__WEBURL__/user/index/uavatar">
                        <div class="touxiangarea">
                            <div class="uploadpic"></div>
                            <div class="touxiang"><img src="{$userinfo.uavatar|getUavatar}" alt=""/></div>
                        </div>
                    </a>


    <h3 class="listtitle">账号管理</h3>
                    <ul class="listcss">
                        <foreach name="usernav" item="un">
                            <li><a href="__WEBURL__/user/index/{$un.link}" class="{$un.act}">{$un.title}</a></li>
                        </foreach>
                    </ul></td>
                <td valign="top" style="padding-left:27px;">

                    <div class="topright">
                        <div class="bj1">
                            <div class="member_jifen">积分：<span class="jfz">{$userinfo.upoint}</span>  <span class="duihuancss"><a href="__WEBURL__/jifen">兑换礼品</a></span></div>
                            <if condition="$userinfo.ifrz eq 1">
                            <div class="member_renzheng">认证烘焙师</div>
                                <elseif condition="$userinfo.ifrz eq 2" />
                                    <div class="member_renzheng"><font color="red">未通过</font> <a data-url="user/index/userRequest/" class="R_ajax_trip" data-info="infoid,{$userinfo.userid}">申请烘焙师</a></div>
                                <else/>
                                <if condition="$userinfo.ifrequest eq 1">
                                    <div class="requested">已申请烘焙师,审核中...</div>
                                    <else/>
                                <div class="member_renzheng request"><a data-url="user/index/userRequest/" class="R_ajax_trip" data-info="infoid,{$userinfo.userid}">申请烘焙师</a></div>
                                    </if>
                            </if>
                        </div>
                        <ul class="member_info">
                            <li><a href="{:U('works')}">烘焙作品  <span class="infonumber">{$hbworksnum}</span></a></li>
                            <li><a href="{:U('suipai')}">随拍作品  <span class="infonumber">{$spworksnum}</span></a></li>
                            <li><a href="{:U('message')}">我的留言  <span class="infonumber">{$msgnum}</span></a></li>
                            <li><a href="{:U('report')}">试用报告  <span class="infonumber">{$reportnum}</span></a></li>
                            <li><a href="{:U('jifen')}">积分换礼  <span class="infonumber">{$userinfo.giftsnum}</span></a></li>
                            <li><a href="__WEBURL__/u/{$userinfo.openuid}/favorite">收藏作品  <span class="infonumber">{$favoritenum}</span></a></li>
                        </ul>

                        <!--<div class="b-userInfo__guanzhuInfo">
                            <div class="b-userInfo__guanzhuLeft">
                                <p class="b-userInfo__guanzhuP1">关注的人</p>
                                <p class="b-userInfo__guanzhuP2"><a href="__WEBURL__/u/{$userinfo.openuid}/attention">{$userinfo.attentionnum}</a></p>
                            </div>
                            <div class="b-userInfo__guanzhuRight">
                                <p class="b-userInfo__guanzhuP1">被关注</p>
                                <p class="b-userInfo__guanzhuP2"><a href="__WEBURL__/u/{$userinfo.openuid}/fans">{$userinfo.fansnum}</a></p>
                            </div>
                        </div>-->
                    </div>
                    <h1 class="member_title">个人资料编辑</h1>
                    <form class="ajaxForm" action="__WEBURL__/user/index" method="post">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="infotable">
                            <tr>
                                <td width="11%" align="right" valign="middle">昵　　称：</td>
                                <td width="87%"><input type="text" name="nickname" id="username" class="inputcss" size="30" value="{$userinfo.nickname}"></td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">性　　别：</td>
                                <td><input type="radio" name="usex" value="1" <eq name="userinfo.usex" value="1">checked</eq> >
                                    男
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="radio" name="usex" value="2" <eq name="userinfo.usex" value="2">checked</eq>>
                                    女&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="radio" name="usex" value="3" <eq name="userinfo.usex" value="">checked</eq>>
                                    未知

                                </td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">邮　　箱：</td>
                                <td><input type="text" class="inputcss" size="50" value="{$userinfo.uemail}"/></td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">手　　机：</td>
                                <td><input type="text" name="umobile" class="inputcss" size="50" value="{$userinfo.umobile}"/></td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">省/市/区：</td>
                                <td><select name="uprovince" id="province" onchange="loadRegion('province','city','{:U('getcity')}');">
                                        <option value="0" selected>省份/直辖市</option>
                                        <volist name="province" id="vo">
                                            <option value="{$vo.province_id}" <eq name="userinfo.uprovince" value="$vo['province_id']"> selected</eq> >{$vo.province_name}</option>
                                        </volist>
                                    </select>
                                    <select name="ucity" id="city"  onchange="loadRegion('city','area','{:U('getarea')}');">
                                        <if condition="$userinfo.ucity neq ''">
                                            <foreach name="ucity" item="uc">
                                                <option value="{$uc.city_id}" <eq name="userinfo.ucity" value="$uc['city_id']"> selected</eq>>{$uc.city_name}</option>
                                            </foreach>
                                        <else/>
                                        <option value="0">市/县</option>
                                            </if>
                                    </select>
                                    <select name="uarea" id="area">
                                        <if condition="$userinfo.uarea neq ''">
                                            <foreach name="uarea" item="ua">
                                                <option value="{$ua.area_id}" <eq name="userinfo.uarea" value="$ua['area_id']"> selected</eq>>{$ua.area_name}</option>
                                            </foreach>
                                            <else/>
                                            <option value="0">镇/区</option>
                                        </if>
                                    </select></td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">收货地址：</td>
                                <td><input type="text" name="uadd" class="inputcss" size="80" value="{$userinfo.uadd}" /></td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">微　　博：</td>
                                <td><input type="text" name="uweibo" class="inputcss" size="50" value="{$userinfo.uweibo}" /></td>
                            </tr>
                            <tr>
                                <td align="right" valign="middle">QQ空间：</td>
                                <td><input type="text" name="uqqzone" class="inputcss" size="50" value="{$userinfo.uqqzone}" /></td>
                            </tr>
                            <tr>
                                <td align="right" valign="top">个人简介：</td>
                                <td><textarea name="usign" class="miaoshu">{$userinfo.usign}</textarea></td>
                            </tr>
                            <tr>
                                <td align="right" valign="top">&nbsp;</td>
                                <td><button class="modifycss Ajax_submit_btn">修 改</button></td>
                            </tr>
                        </table>
                    </form>

                </td>
            </tr>
        </table>
    </div>
</div>
    
    <Admintemplate file="Home/Public/footer"/>

</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js"></script>
<script src="__JS__/jquery.form.min.js"></script>
<script src="__JS__/jquery.doajax.js"></script>

<script>
    $(document).ready(function(){
        $('.b-dongtaiItem').each(function(i,val){
            if(i%3==0) $(this).addClass('b-dongtaiItem_first');
        });
        $('.b-dongtaiItem__pic').hover(function(){
            $(this).find('.b-itemMask').stop(true,true).fadeIn();
        },function(){
            $(this).find('.b-itemMask').stop(true,true).fadeOut();
        });
        $('.b-itemMask').on('click',function(){
            $('body').css({overflow:'hidden'});
            $('.b-pop').show();
        });
        $('.b-popDetail__closeBtn').on('click',function(){
            $('body').css({overflow:'auto'});
            $('.b-pop').hide();
        });
    });
</script>

</body>
</html>